package com.turing.entity;

import org.springframework.stereotype.Component;

import java.util.Date;


@Component
public class User {

	private Long id;
	private String userName;
	private Date createTime;

	public User() {
		System.out.println("user加载");
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", userName='" + userName + '\'' +
				", createTime=" + createTime +
				'}';
	}
}
